package cn.gdpu.course.dao.impl;

import cn.gdpu.course.dao.MybatisDao;
import cn.gdpu.course.dao.SettingDao;
import cn.gdpu.course.dao.domain.Setting;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2018/3/13.
 */
@Repository
public class SettingDaoImpl extends MybatisDao<Setting> implements SettingDao {
	public boolean update(Setting bean) {
		return this.insert("SettingMapper.update", bean);
	}

	public List<Setting> find(Setting bean) {
		return this.queryForList("SettingMapper.select", bean);
	}

	public Setting findById(Setting bean) {
		return this.queryForObject("SettingMapper.selectById", bean);
	}
}
